import request from "../utils/request.js"

/**
 * 获取验证码
 * @param {Object} phone 手机号 
 * @returns promise
 */
export function getPhoneCaptcha(phone) {
  return request.get(`/user/ct/getCaptcha?phone=${phone}`)
}

/**
 * 登陆
 * @param {Object} data 
 * @returns promise
 */
export function login(data) {
  return request.post(`/user/ct/login`, data)
}